﻿using System;
using NUnit.Framework;

namespace Smarly.Bussines.Test
{
	[TestFixture]
	public class SmarlyQueueTest
	{
		[Test]
		public void Add()
		{
			SmarlyQueue<int> q = new SmarlyQueue<int>(5);
			q.AddOrReplace("1", 1);
			q.AddOrReplace("2", 2, DateTime.Now.AddSeconds(1));
			q.AddOrReplace("3", 3, DateTime.Now.AddSeconds(1));
			q.AddOrReplace("4", 4);
			q.AddOrReplace("5", 5);

			q.AddOrReplace("2", 2, DateTime.Now.AddSeconds(3));


			q.AddOrReplace("3", 1);

		}
	}
}